package com.liukai.bishe.model.doman.transaction;

import java.io.Serializable;

public class Transaction implements Serializable {

    private String username;

    private String starttime;

    private String stoptime;

    private String transactionname;

    private String transactiontype;

    private String time;

    private String status;

    private String addtime; // 新增事务的时间戳

    private String id; // 主键（username + addtime）

    public Transaction() {
    }

    public Transaction(String username, String starttime, String stoptime,
                       String transactionname, String transactiontype, String time,
                       String status, String addtime, String id) {
        this.username = username;
        this.starttime = starttime;
        this.stoptime = stoptime;
        this.transactionname = transactionname;
        this.transactiontype = transactiontype;
        this.time = time;
        this.status = status;
        this.addtime = addtime;
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getStarttime() {
        return starttime;
    }

    public void setStarttime(String starttime) {
        this.starttime = starttime;
    }

    public String getStoptime() {
        return stoptime;
    }

    public void setStoptime(String stoptime) {
        this.stoptime = stoptime;
    }

    public String getTransactionname() {
        return transactionname;
    }

    public void setTransactionname(String transactionname) {
        this.transactionname = transactionname;
    }

    public String getTransactiontype() {
        return transactiontype;
    }

    public void setTransactiontype(String transactiontype) {
        this.transactiontype = transactiontype;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getAddtime() {
        return addtime;
    }

    public void setAddtime(String addtime) {
        this.addtime = addtime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }


    @Override
    public String toString() {
        return "Transaction{" +
                "username='" + username + '\'' +
                ", starttime='" + starttime + '\'' +
                ", stoptime='" + stoptime + '\'' +
                ", transactionname='" + transactionname + '\'' +
                ", transactiontype='" + transactiontype + '\'' +
                ", time='" + time + '\'' +
                ", status='" + status + '\'' +
                ", addtime='" + addtime + '\'' +
                ", id='" + id + '\'' +
                '}';
    }
}
